﻿using System;
using UnityEngine;

// Token: 0x0200002A RID: 42
public class VrBuddyDeathBehaviour : MonoBehaviour
{
	// Token: 0x060000BA RID: 186 RVA: 0x0000FFF6 File Offset: 0x0000E1F6
	private void Start()
	{
		this.body = base.GetComponent<BodyScript>();
	}

	// Token: 0x060000BB RID: 187 RVA: 0x00010004 File Offset: 0x0000E204
	private void Update()
	{
		if (this.body.health < 0f)
		{
			foreach (Rigidbody2D rigidbody2D in this.body.limbs)
			{
				rigidbody2D.gravityScale = 0f;
			}
			this.body.gameObject.AddComponent<DissapearHandler>();
			Object.Destroy(this);
		}
	}

	// Token: 0x0400019E RID: 414
	private BodyScript body;
}
